<!--************************************************************************************************-->
<!-- < deleteUserResult.php >                                                                           -->
<!-- Copyright (c) 2012-2013 San Yat-sun University School of Software                              -->
<!-- Founder : Xiaoxin Mo                                                                          -->
<!-- Stu : 10389159                                                                                 -->
<!-- Date: 2013-1-5                                                                             -->                                                                     
<!-- Version : 3.1                                                                                  -->
<!--************************************************************************************************-->

<!DOCTYPE html>
<?php
	include_once("../manager/UserManager.php");
	include_once("header.php");
	//include_once("bottom.php");
	
	if( isset($_POST['username'])) {
		$username = $_POST['username'];
		$password = $_POST['userpassword'];
		// nickname is same to username
		$nickname = $username;
		
		$array = array('Username'=>$username, 'Password'=>$password, 'Nickname'=>$nickname);
		
		UserManager::getInstance()->register($array);
	}
	else
		//
?>
<html lang="zh-hk">
	<head>
		<title>TINY bOOk</title>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8">
		<meta name="contentType" value="text/html  charset=GBK">
		<link rel="stylesheet" type="text/css" href="../css/result.css"/>
		<link rel="shortcut icon" href="images/shortcut.jpg"/>
		<meta http-equiv="refresh" content="1; url=adminPage.php">
	</head>	
		
	<body>
		<div id="result">
			<p>已成功添加用户，返回管理员界面</p>
		</div>
	</body>
</html>